package com.xxxx.car.audit.controller;

import com.xxxx.car.audit.domain.PackageAudit;
import com.xxxx.car.audit.service.IPackageAuditService;
import com.xxxx.car.audit.vo.HandleAuditParam;
import com.xxxx.car.common.core.controller.BaseController;
import com.xxxx.car.common.core.domain.AjaxResult;
import com.xxxx.car.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 待办任务Controller
 * 
 * @author Huang
 * @date 2024-10-11
 */
@RestController
@RequestMapping("/audit/done")
public class PackageAuditDoneController extends BaseController
{
    @Autowired
    private IPackageAuditService packageAuditService;

    /**
     * 查询审核信息列表
     */
    @PreAuthorize("@ss.hasPermi('audit:done:list')")
    @GetMapping("/list")
    public TableDataInfo list()
    {
        //startPage();
        List<PackageAudit> list = packageAuditService.selectAuditListByType(PackageAudit.DONE_LIST);
        return getDataTable(list);
    }

}
